Generalize "animated" images to "multi-frame" images
authorGlenn Morris <rgm@gnu.org>
Sat, 16 Feb 2013 19:56:50 +0000 (11:56 -0800)
committerGlenn Morris <rgm@gnu.org>
Sat, 16 Feb 2013 19:56:50 +0000 (11:56 -0800)
commit6d15d851bdf6e1c31502bb2a065dbb611637ec2f
treea5fe883dc7ac4235931c6591e29f71d9a74077ee
parent89b568984af9d86484f0dfe19584ea8bacc3046d
Generalize "animated" images to "multi-frame" images

* lisp/image.el (image-animated-types): Remove.
(image-multi-frame-p): Rename from image-animated-p, and generalize.
(image-animated-p): Make obsolete alias.
(image-animate, image-nth-frame, image-animate-timeout):
Use image-multi-frame-p.
(image-animate-timeout): If no delay, use image-default-frame-delay.

* lisp/image-mode.el (image-mode, image-toggle-animation):
Use image-multi-frame-p.
(image-mode): Adjust startup message for a multi-frame image.

* lisp/gnus/shr.el (shr-put-image): Only animate images that specify a delay.
This is consistent with the old image-animated-p behavior.

* etc/NEWS: Add placeholder for this.
etc/NEWS
lisp/ChangeLog
lisp/gnus/ChangeLog
lisp/gnus/shr.el
lisp/image-mode.el
lisp/image.el